const Router = require('@koa/router')

const Classification = require('../controllers/classificationController')

const router = new Router({
    prefix: '/category',
})

router.post('/add', Classification.create)

router.post('/update', Classification.update)

router.delete('/:id', Classification.remove)

router.get('/list', Classification.findList)

module.exports = router
